Skip to main content
POST
/
api
/
portrait
/
effects
/
emotion-editor
Change facial expressions
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/effects/emotion-editor \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form image_target='@example-file' \
  --form 'service_choice=<string>'
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "data": {
    "image": ""
  }
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image_target
file
service_choice
string

Expression type.

  • 10: Dimple Smile.
  • 11: Pear Dimple Smile.
  • 12: Big Grin.
  • 13: Standard Grin.
  • 14: Cool Pose.
  • 15: Sad.
  • 16: Forced Smile.
  • 100: Opening eyes.
  • Response

    200 - application/json

    Success

    The response is of type object.